<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    * {
        padding: 0;
        margin: 0;
    }

    .container {
        width: 650px;
        height: 200px;
        margin: 100px auto;
        overflow: hidden;
        position: relative;
    }

    .container ul {
        list-style: none;
        width: 1300px;
        animation: scoll 4s linear infinite backwards;
        background: rgba(0, 0, 0, 0.1);

    }

    .container ul li {
        width: 100px;
        height: 100px;
        background: red;
        float: left;
        margin-left: 30px;
        text-align: center;
        color: white;
        line-height: 50px;
    }

    @-webkit-keyframes scoll {
        from {
            transform: translateX(-650px);
        }

        to {
            transform: translateX(0px);
        }
    }
    </style>
</head>

<body>
    <div class="container">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
        </ul>
    </div>
</body>

</html>